package com.nervenets.general.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class MatchedResult<T> implements Serializable {
    @ApiModelProperty("是否匹配")
    private boolean matched;
    @ApiModelProperty("结果")
    private T result;

    @Override
    public String toString() {
        return "MatchedResult{" +
                "matched=" + matched +
                ", result=" + result +
                '}';
    }
}
